package com.erp.warehouse.clouderp_warehouse.mapper.inbound;

import com.erp.warehouse.clouderp_warehouse.pojo.inbound.InboundOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author 86188
* @description 针对表【inbound_order(商品入库时入库表，关联采购单表/退货单表)】的数据库操作Mapper
* @createDate 2025-10-30 10:17:18
* @Entity .pojo.InboundOrder
*/
@Mapper
public interface InboundOrderMapper {
    int insert(InboundOrder inboundOrder);
    //修改默认不修改源单sourceOrderCode
    int update(InboundOrder inboundOrder);
    //当前staffNo只能删除自己的入库单，不能删除他人的
    int virtualDeleteById(Map<String, Object> params);
    int virtualDeleteByIds(@Param("ids") List<Long> ids, @Param("staffId") String staffId, @Param("companyId") String companyId);
    List<InboundOrder> selectInboundOrderList(Map<String, Object> params);
    InboundOrder selectInboundOrder(String id);
    int updateStatus(@Param("id") String id, @Param("status") byte status);
}




